//
//  Joystick.h
//  Maze1
//
//  Created by Lin Tian on 10/14/11.
//  Copyright 2011 tina. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "LocalPlayer.h"

#define DIRECTION 1
#define VIEW 2

#define RADIUS 128

@interface Joystick : CCLayer {
    NSTimeInterval lastTapTime;
    CCSprite* currentJs;
    CCSprite* lastJs;
    CCSprite* tap;
    LocalPlayer* _player;
    bool isMoveJs;
    bool isTapped;
}

+(CCScene*)scene;
//-(id)initWithPlayer:(Player*)aPlayer;

@property (nonatomic, retain)CCSprite* currentJs;
@property (nonatomic, retain)CCSprite* lastJs;
@property (nonatomic, retain)CCSprite* tap;
@property (nonatomic, retain)LocalPlayer* player;

@end
